package com.bluesky.plum.uimodels.render.html.components.menu;

import com.bluesky.javawebbrowser.domain.html.tags.Tag;
import com.bluesky.javawebbrowser.domain.html.tags.layout.DIV;
import com.bluesky.plum.uimodels.standard.components.menu.Menu;

public class HMenuBar extends
		com.bluesky.plum.uimodels.standard.components.menu.MenuBar {

	protected DIV div;

	public HMenuBar() {
		div = new DIV();
		div.setAttribute("class", "menuBar");
		
	
	}

	@Override
	public void addMenu(Menu menu) {
		super.addMenu(menu);

		div.addChild((Tag) menu.getNativeComponent());
	}
	
	@Override
	public Object getNativeComponent() {

		return div;
	}
}
